using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlTypes;
using Spring.Data;
using Spring.Data.Generic;
using Spring.Data.Common;
using Spring.Data.Objects.Generic;
using Spring.Transaction;
using Spring.Transaction.Support;

namespace Ordering
{
    public static class AppConfigurer
    {
        //Configuration data from initialization 
        private static AdoTemplate _AdoTemplate;

        public static AdoTemplate AdoTemplate
        {
            get
            {
                if (_AdoTemplate == null)
                    throw new Exception("Component not initialized");

                return _AdoTemplate;
            }
        }

        public static void SetTemplate(AdoTemplate template)
        {
            _AdoTemplate = template;
        }


        public static string DateFormat
        {
            get
            {
                return "yyyy-MM-dd";
            }
        }       
    }
}

